//package cn.fuxi2022.core.config;
//
//import org.springframework.context.annotation.Configuration;
//import org.springframework.web.servlet.config.annotation.ResourceHandlerRegistry;
//import org.springframework.web.servlet.config.annotation.WebMvcConfigurationSupport;
//
///**
// * 解决 No handler found for GET /swagger-ui.html
// * 解决 No handler found for GET /doc.html
// * <p>
// * 资源处理器注册静态资源
// * 手动的把 swagger-ui 和 knife4j 添加到拦截器里面去
// */
//@Configuration
//public class WebMvcConfigurer extends WebMvcConfigurationSupport /*WebMvcConfigurerAdapter*/ {
//
//    @Override
//    public void addResourceHandlers(ResourceHandlerRegistry registry) {
//
//        registry.addResourceHandler("swagger-ui.html").addResourceLocations("classpath:/META-INF/resources/");
//        registry.addResourceHandler("/webjars/**").addResourceLocations("classpath:/META-INF/resources/webjars/");
//
////        registry.addResourceHandler("doc.html").addResourceLocations("classpath:/META-INF/resources/");
////        registry.addResourceHandler("/webjars/**").addResourceLocations("classpath:/META-INF/resources/webjars/");
//
//        super.addResourceHandlers(registry);
//    }
//}
//
